{% extends "../master.html" %}
{% block hfm_css %}
<style type="text/css">
    .layui-textarea{
        height: 200px;
    }
    .layui-bg-gray{
        top: 5px;
    }

</style>
{% end %}
{% block page_content %}
<div class="layui-fluid">
    <div class="layui-row">
        <form action="" method="post" class="layui-form-pane layui-form">
            <div class="layui-form-item layui-form-input">
                <label for="user_name" class="layui-form-label">
                    <span class="x-red">*</span>资产标识</label>
                <div class="layui-input-block">
                    <input type="text" id="user_name" name="user_name" required="" lay-verify="required" autocomplete="off" class="layui-input" placeholder="标记操作信息方便检索，域名或IP地址">
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label for="asset_list" class="layui-form-label">
                    <span class="x-red">*</span> 资产列表
                </label>
                <div class="layui-input-block">
                    <textarea placeholder="Example:&#10;192.168.1.1&#10;192.168.0/24&#10;www.example.com&#10;输入想探测的资产，系统会自动分类" id="asset_list" name="asset_list" class="layui-textarea" required="" lay-verify="required"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 100px; border-radius: 10px;"><span class="x-red">*</span>任务周期</label>
                <div class="layui-inline">
                    <div class="layui-input-block " style="margin-left:0px">
                        <input type="radio" name="worktime" value="one" checked title="一次">
                        <input type="radio" name="worktime" value="day" title="每天">
                        <input type="radio" name="worktime" value="week" title="每周">
                        <input type="radio" name="worktime" value="month" title="每月">
                        <input type="radio" name="worktime" value="season" title="每季度">
                        <input type="radio" name="worktime" value="halfyear" title="每半年">
                        <input type="radio" name="worktime" value="year" title="每年">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 150px; border-radius: 10px;"><span class="x-red">*</span>开启探测</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="scan" checked lay-skin="switch" lay-text="开|关">
                    <span class="layui-badge layui-bg-gray">开启探测后才会进行资产发现和探测</span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 150px; border-radius: 10px;"><span class="x-red">*</span>Web端口快速探测</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="webfastport" checked lay-skin="switch" lay-text="开|关">
                    <span class="layui-badge layui-bg-gray">默认开启快速探测部分端口，关闭后会探测全部端口，速到比较慢</span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 150px; border-radius: 10px;"><span class="x-red">*</span>探测C段</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="scanC" lay-skin="switch" lay-text="开|关">
                    <span class="layui-badge layui-bg-gray">开启后会智能探测C段</span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 150px; border-radius: 10px;"><span class="x-red">*</span>C段端口快速探测</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="scanfastC" checked lay-skin="switch" lay-text="开|关">
                    <span class="layui-badge layui-bg-gray">"探测C段"开启才会有效，开启后会在C段扫描时探测部分端口，关闭后会探测全部端口</span>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-col-xs6" >
                    <button type="reset" class="layui-btn">重置</button>
                </div>
                <div class="layui-col-xs6" align='right'>
                    <button type="submit" class="layui-btn" lay-submit lay-filter="task_form" >确认</button>
                </div>
             </div>
        </form>
    </div>
</div>
<script>
    layui.use(['table', 'form'], function () {
        var table = layui.table,
            form = layui.form,
            $ = layui.$;
        form.render();

    })
</script>
{% end %}